/**
 * @description 数据校验 channel
 */

const strRule = {
  type: 'string',
  maxLength: 255
}
const numRule = {
  type: 'number'
}

module.exports = {
  type: 'object',
  required: ['name'],
  properties: {
    name: strRule,
    workId: numRule
  }
}
